home *** CD-ROM | disk | FTP | other *** search
- on getPathDelim
- if the machineType < 256 then
- return ":"
- else
- return "\"
- end if
- end
-
- on findVolume theSpecialFile
- if the machineType < 256 then
- alert("findVolume() is a Windows-only handler.")
- exit
- end if
- set theVolume to EMPTY
- repeat with i = 1 to 26
- set theDrive to numToChar(91 - i) & ":"
- set thePath to theDrive & "\" & "data" & "\" & theSpecialFile
- set myFile to FileIO(mnew, "read", thePath)
- if objectp(myFile) then
- set theVolume to theDrive
- myFile(mdispose)
- exit repeat
- end if
- end repeat
- if theVolume = EMPTY then
- fatalError("Please check that the disc is in your CD drive.")
- end if
- putDebug("theVolume = " & theVolume)
- return theVolume
- end
-